package main

import (
	"fmt"
	"gorule/core"
)

func main()  {
	rule1 := core.Rule(
		func(ctx *core.Context) bool {
			return true
		},
		func(ctx *core.Context) {

		},
	)

	_, ok := interface{}(rule1).(*core.RuleStruct)
	fmt.Println("rule is RuleStruct", ok)
}
